package com.lzq.course.server.exception;

/**
 * 业务异常枚举
 */
public enum BusinessExceptionCode {
    USER_NOT_FOUND("用户不存在"),
    USER_LOGIN_NAME_EXIST("用户名已存在"),
    USER_LOGIN_ERROR("用户名或密码错误"),
    MEMBER_NOT_EXIST("会员不存在"),
    LOGIN_MEMBER_ERROR("手机号不存在或密码错误"),
    MOBILE_CODE_TOO_FREQUENT("短信请求过于频繁"),
    MOBILE_CODE_ERROR("短信验证码不正确"),
    MOBILE_CODE_EXPIRED("短信验证码不存在或已过期，请重新发送短信");

    private String desc;

    BusinessExceptionCode(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
